package org.teachertools.web.actions;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.teachertools.web.SessionHelper;
import org.teachertools.web.struts.BaseAction;

public class HomeAction extends BaseAction {

	@Override
    protected ActionForward process(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
        request.getSession().setAttribute(SessionHelper.IS_CONNECTED, "TRUE");
        return (mapping.findForward("continue"));
    }
}
